import uping
import zz_wifi
import zz_mqtt
import zz_code

wifi = zz_wifi.of()
wifi_connect = wifi.begin_connect()

if wifi_connect:
    pinger = uping.Ping('192.168.101.17', TIMEOUT=2000)
    # Some awesome code
    try:
        pong = pinger.ping()
        print("ok")
    except Exception as ex:
        print("fail")
    # pinger.start()
    # print(zz_code.ping("192.168.0.1"))